package com.woniu.api;

import com.woniu.dto.QueryBloodDto;
import com.woniu.param.CreateBloodParam;
import com.woniu.param.QueryBloodParam;
import com.woniu.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "check", contextId = "blood", path = "blood")
@Api(tags = "血检API")
public interface HisBloodAPI {

    //查询血检结果
    @ApiOperation("查询血检结果")
    @GetMapping("/queryBlood")
    Result<QueryBloodDto> queryBlood(@RequestBody QueryBloodParam queryBloodParam);

    //添加血检
    @ApiOperation("添加血检")
    @PostMapping("/createBlood")
    Result<QueryBloodDto> createBlood(@RequestBody CreateBloodParam createBloodParam);
}
